// 项目名称
export const APP_NAME = '捡知识'

// 项目版本号
export const APP_VER = 'v1.0'

// 接口地址
export const APP_BASE_URL = 'https://api.pc.class.sanhaogongwen.com/'

// 微信公众APPID
export const APPID = 'wxdbd1adceae1262ab'

// token 传递的 header 名称
export const TOKEN_HEADER_NAME = 'Authorization'

// 不需要登录的路由
export const WHITE_LIST = ['/login']

// 高德地图 key , 自带的只能用于测试, 正式项目请自行到高德地图官网申请 key
export const MAP_KEY = '006d995d433058322319fa797f2876f5'

export const UPLPAD_URL = 'sp/pt/app/employee/common/upload'

export const syncVars = ['token', 'category']

export const syncVarReady = (name) => {
  return `${name}Ready`
}

export const syncVarCallback = (name) => {
  return `${name}Callback`
}

export const NAVIGATE_TYPE = {
  NAVIGATE_TO: 'navigateTo',
  REDIRECT_TO: 'redirectTo',
  RE_LAUNCH: 'reLaunch',
  SWITCH_TAB: 'switchTab',
  NAVIGATE_BACK: 'navigateBack'
}

export const NAVIGATE_TYPE_LIST = [
  'navigateTo',
  'redirectTo',
  'reLaunch',
  'switchTab'
]

export const HOME_PAGE = '/pages/index/index'
export const LOGIN_PAGE = '/pages/user/login'
export const NOT_FOUND_PAGE = '/pages/index/404'
